At 10:05 PM 3/2/98, you wrote:
>Brad,
>Would like to convert the temperature and pressure readings to integer to
>display.  The display jumps around too much, so would like to just display
>the integer part of temperature and pressure.

To integerize the temp and pressure displays:
MainPanel.alt, method attach:
Change from:
	press	.connect[vm.tpAdcPres, #value]
		.setUnits[vm.tpAdcPres.units.name]
	temp	.connect[vm.tpAdcTemp, #value]
		.setUnits[vm.tpAdcTemp.units.name]
to:
	press	.connect[self, #pressure]
		.setUnits[vm.tpAdcPres.units.name]
	temp	.connect[self, #temperature]
		.setUnits[vm.tpAdcTemp.units.name]
(i.e., change the ".connect" part).

Next, define new methods (in MainPanel):

METHOD pressure IS
BEGIN
	RETURN vm.tpAdcPres.value.integer
END METHOD

METHOD temperature IS
BEGIN
	RETURN vm.tpAdcTemp.value.integer
END METHOD

Note that the ".integer" integerizes the value.


-Brad

